//
//  DownLoanImage.m
//  UI15_Get-Post
//
//  Created by dllo on 15/6/2.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "DownLoanImage.h"

@implementation DownLoanImage




+(void)downLoadImageUrl:(NSString *)urlStr block:(DownLoadBlock)myBlock
{

    NSString *urlEncoding = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    
    NSURL *url = [NSURL URLWithString:urlEncoding];
    
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
[NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
    
    //block回调
    myBlock(data);
    
}];


}





@end
